# 4.3数到20
for i in range(1, 21):
    print(i)


# 4.6 奇数
num = list(range(1, 20, 2))
for i in num:
    print(i)

# 4.7 3的倍数
three_times = list(range(3, 31, 3))
for i in three_times:
    print(i)

# 4.8
cubes = []
for i in range(1 , 11):
    cubes.append(i**3)

for i in cubes:
    print(i)

# 4.9
cubes = [i**3 for i in range(1,11)]
print(cubes)